﻿using System;
using System.ComponentModel;
using System.Windows;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for Machine.xaml
    /// </summary>

    public partial class TZLYBJ
    {
        public TZLYBJ()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VAMSTAMM();
            DataContext = MV;
            InitializeComponent(); 
        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return; 
            base.Window_Loaded(sender, e);
            
        }
        public override void LOADBYAUF()
        {
            if (ORDERNUM.Length < 8)
                return;
            MKEY = ORDERNUM;
            StartMonitoring(IsSimulate);
            base.LOADBYAUF();
        }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
             
        }
        public override void StartMonitoring(bool IsSimulate)
        {
            base.StartMonitoring(IsSimulate);
           
        }
        public override void OnVU0Chg(string value)
        {
            QTY = double.Parse(VU0) * 1000;
            base.OnVU0Chg(value);
        }
    }
}
